import sys
from PySide6 import QtCore, QtWidgets
import ui_dlglogon
class dlglogon(QtGui.QDialog):
    ui=ui_dlglogon.Ui_Dlglogon();
    def __init__(self, parent=None):
        QtGui.QWidget.__init__(self, parent)
        self.ui.setupUi(self)
      
        
if __name__ == "__main__":
    a = QtWidgets.QApplication(sys.argv)
    QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
    w =dlglogon()
    w.show()
    sys.exit(a.exec_())